from starlette_admin.contrib.sqla import ModelView

from src.infrastructure.db.models import Site


class SiteView(ModelView):
    fields = [
        "id",
        "name",
        "categories",
    ]
    fields_default_sort = [Site.id, ("id", True)]
